﻿using System.ComponentModel.Composition;
using System.Windows.Controls;
using System.Collections.Generic;
using ScrumFactory.Composition.ViewModel;


namespace ScrumFactory.Backlog {

    /// <summary>
    /// Interaction logic for Burndown.xaml
    /// </summary>
    [Export(typeof(IBurndownView))]
    public partial class Burndown : UserControl, IBurndownView {

        private IBurndownViewModel model;

        public Burndown() {
            InitializeComponent();           
        }

        /// <summary>
        /// Gets or sets the model.
        /// </summary>
        /// <value>The model.</value>  
        [Import(typeof(IBurndownViewModel))]
        public IBurndownViewModel Model {
            get {
                return this.model;
            }
            set {
                this.model = value;
                this.DataContext = value;
            }
        }

    }
}
